package com.qf.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author YuChenFei
 * @date 2022/12/28 20:26
 * @description
 */
public class User implements Serializable {

    private Integer id;
    private String username;
    private String password;
    /**
     * 1男 2女
     */
    private Integer sex;
    /**
     * 真实姓名
     */
    private String realname;
    /**
     * 入职时间
     */
    private Date hiredate;
    /**
     * 1正常 2离职
     */
    private Integer status;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex=" + sex +
                ", realname='" + realname + '\'' +
                ", hiredate=" + hiredate +
                ", status=" + status +
                '}';
    }

    public User() {
    }

    public User(Integer id, String username, String password, Integer sex, String realname, Date hiredate, Integer status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.realname = realname;
        this.hiredate = hiredate;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
